package com.xyy.saas.payment.config;

import com.netflix.hystrix.contrib.javanica.aop.aspectj.HystrixCommandAspect;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wangtianqi
 * @date 2019/11/28 17:39
 */
@Configuration
public class HystrixConfig {

    /**
     *用来拦截处理HystrixCommand注解
     */
    @Bean
    public HystrixCommandAspect hystrixAspect() {
        return new HystrixCommandAspect();
    }

}